Component({
  properties: {
    song: {
      type: Object,
      value: {
        id: '',
        title: '',
        artist: '',
        cover: '',
        url: '',
        liked: false,
      }
    }
  },
  methods: {
    onTapCard() {
      this.triggerEvent('tapcard', { song: this.data.song })
    },
    onPlayTap() {
      this.triggerEvent('play', { song: this.data.song })
    },
    onLikeTap() {
      this.triggerEvent('togglelike', { song: this.data.song })
    }
  }
})